package com.zyt.springcloudsentinel;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
public class SpringCloudSentinelApplication {

	public static void main(String[] args) {
		SpringApplication.run(SpringCloudSentinelApplication.class, args);
	}

	@RestController
	class Controller {

		@GetMapping(value = "echo/{string}")
		public String hello(@PathVariable String string) {
			return "Hello，" + string;
		}
	}
}
